package com.allwees.bs.core.modelbase.exception;

public enum AuthExceptionEnum implements ExceptionEnum {
	LOGIN_INPUT_FAIL(10001, "账号或密码错误"),

	ACCOUNT_NOT_EXSIT(10002, "用户不存在"),

	LOGIN_INPUT_EMPTY(10003, "账户和密码均不能为空"),

	NOT_LOGIN(10004, "用户未登录或身份异常"),

	SIGN_CHECK_FIAL(10005, "用户身份信息校验失败"),

	SIGN_IN_FAIL(10006, "登录失败"),

	ACCOUNT_DISABLED(10007, "账号已停用"),

	NO_AUTHORIZE(10008, "未授权操作"),

	NO_BRANCH_USER(10101, "当前登录机构用户为空"),

	NO_BRANCH_ID(10102, "当前机构用户关联的机构为空"),

	WRONG_BRANCH_TYPE(10103, "当前机构用户关联的机构类型错误");

    private Integer code;

    private String msg;

    AuthExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
